import {DEVICE_MILEAGE} from "./const";

const initState = {
  device_mileage:null
};

export default function reducer(state = initState, {type, payload}) {
  switch (type) {
    case DEVICE_MILEAGE:
      return {
        ...state,
        ...payload,
      };
    default:
      return state;
  }
}
